package com.example.micrdataservice.mapper;


import com.example.micrapi.pojo.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author smc
* @description 针对表【sys_menu】的数据库操作Mapper
* @createDate 2024-02-27 23:15:57
* @Entity generator.pojo/.SysMenu
*/
public interface SysMenuMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    SysMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);

    List<SysMenu> selectByRoleIds(@Param("roleIds") List<Integer> roleIds);

    @Select("""
        select * from sys_menu
    """)
    List<SysMenu> selectAll();
}
